From: Dan Winship Date: Tue, 15 Feb 2011 22:10:35 +0000 (-0500) Subject: dateMenu: make the menu un-key-navigable X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~8770 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=df848fdb4da9f6a976189c7536f203610d35ccb8;p=gnome-shell.git dateMenu: make the menu un-key-navigable It already doesn't work right, because the PanelMenuButton code assumes that Left and Right won't be used as part of keynav within a menu. And the gnome-panel calendar isn't keyboard accessible either, so this isn't a regression. To be fixed later. https://bugzilla.gnome.org/show_bug.cgi?id=641253 --- diff --git a/js/ui/dateMenu.js b/js/ui/dateMenu.js index 6dee534b6..ad2c112ef 100644 --- a/js/ui/dateMenu.js +++ b/js/ui/dateMenu.js @@ -90,6 +90,7 @@ DateMenuButton.prototype = { vbox.add(item.actor, {y_align: St.Align.END, expand: true, y_fill: false}); item = new PopupMenu.PopupMenuItem(_("Date and Time Settings")); item.connect('activate', Lang.bind(this, this._onPreferencesActivate)); + item.actor.can_focus = false; vbox.add(item.actor); // Add vertical separator @@ -109,6 +110,7 @@ DateMenuButton.prototype = { item = new PopupMenu.PopupMenuItem(_("Open Calendar")); item.connect('activate', Lang.bind(this, this._onOpenCalendarActivate)); + item.actor.can_focus = false; vbox.add(item.actor, {y_align: St.Align.END, expand: true, y_fill: false}); // Whenever the menu is opened, select today